import prompt from '@system.prompt';
import router from '@system.router';
export default {
    data: {
        username:'',
        password:'',
    },
    inputUsername(event){
        this.username=event.value
    },
    inputPassword(event){
        this.password=event.value
    },
    login(){
        if (this.username=='1'&&this.password=='1') {
            router.push({
                uri:"pages/index/index",
            })
        }else{
            prompt.showToast({
                message:"用户名或者密码错误"
            })
        }
    }
}
